package com.elmcode.server.service.impl;

import com.elmcode.server.dao.StoreCategoryDao;
import com.elmcode.server.entity.StoreCategoryEntity;
import com.elmcode.server.service.StoreCategoryService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elmcode.common.utils.PageUtils;
import com.elmcode.common.utils.Query;



@Service("storeCategoryService")
public class StoreCategoryServiceImpl extends ServiceImpl<StoreCategoryDao, StoreCategoryEntity> implements StoreCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StoreCategoryEntity> page = this.page(
                new Query<StoreCategoryEntity>().getPage(params),
                new QueryWrapper<StoreCategoryEntity>()
        );

        return new PageUtils(page);
    }

}